/**
 * Created by wuye on 2017/12/11.
 */
var setting = {
    data: {
        simpleData: {
            enable: true,
            idKey: "deptId",
            pIdKey: "parentId",
            rootPId: -1
        },
        key: {
            url:"nourl"
        }
    }
};
var ztree;

var vm = new Vue({
    el:'#rrapp',
    data:{
        q:{
            bookname: null
        },
        showList: true,
        title:null,
        // roleList:{},
        banner:{
            bannerpic:null
        },
        sels:[

        ],
        showWelfare:[],
    },
    created:function () {
        $.ajax({
            url: baseURL + 'sys/welfare/getAll',
            type: "POST",
            contentType: "application/json",
            success: function(result) {
                console.log(result)
                vm.showWelfare = result.data
            },
            error: function(error) {
                alert('layer失败!');
            }
        })
    },
    methods: {

    }
});
